<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>for循环输出图片</title>
		<script type="text/javascript">
			let num = prompt("想要输出玫瑰的数量：");
			for(let i = 1;i<=10;i++) {
				document.write("<img src='img/党旗.jpg' width='100px' style='margin-left: 10px;'/>");
			}
		</script>
	</head>
	<body>
	</body>
</html>